package com.lingnan;

import com.lingnan.eduservice.EduApplication;
import com.lingnan.eduservice.entity.po.EduTeacherPO;
import com.lingnan.eduservice.entity.vo.EduTeacherLevelVO;
import com.lingnan.eduservice.mapper.EduTeacherMapper;
import com.lingnan.eduservice.service.EduTeacherService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.ArrayList;
import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = EduApplication.class)
public class AddTestDemo {

    @Autowired
    private EduTeacherService eduTeacherService;

    /**
     * 根据头衔教师分类
     */
    @Test
    public void findTeacherByLevelTest(){
        eduTeacherService.findTeacherByLevel();

    }
    @Test
    public void test(){
        ArrayList<Object> arrayList = new ArrayList<>(100); // 指定长度+尾插法
        arrayList.add(123);
    }

}
